package com.tl.satoken.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 聊天消息，存储于Redis
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ChatMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    private String type;
    private String scope;
    private Long fromHeroId;
    private Long toHeroId;
    private String roomId;
    private String content;
    private Long sendTime;
}
